package seminario.vista;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.LayoutStyle;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;
import javax.swing.SwingUtilities;

public class Reporte extends javax.swing.JFrame {
	private JLabel lbTipo;
	private JLabel lbFDesde;
	private JLabel lbFHasta;
	private JButton btCancelar;
	private JButton btAceptar;
	private JComboBox cbRecurso;
	private JLabel lbRecurso;
	private JComboBox cbCliente;
	private JLabel lbCliente;
	private JTextField tfFHasta;
	private JTextField tfFDesde;
	private JComboBox cbTipo;

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}


	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				Reporte inst = new Reporte();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public Reporte() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			GroupLayout thisLayout = new GroupLayout((JComponent)getContentPane());
			getContentPane().setLayout(thisLayout);
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				lbTipo = new JLabel();
				lbTipo.setText("Tipo");
			}
			{
				lbCliente = new JLabel();
				lbCliente.setText("Cliente");
			}
			{
				ComboBoxModel cbClienteModel = 
					new DefaultComboBoxModel(
							new String[] { "Item One", "Item Two" });
				cbCliente = new JComboBox();
				cbCliente.setModel(cbClienteModel);
			}
			{
				lbRecurso = new JLabel();
				lbRecurso.setText("Recurso");
			}
			{
				ComboBoxModel cbRecursoModel = 
					new DefaultComboBoxModel(
							new String[] { "Item One", "Item Two" });
				cbRecurso = new JComboBox();
				cbRecurso.setModel(cbRecursoModel);
			}
			{
				btAceptar = new JButton();
				btAceptar.setText("Aceptar");
			}
			{
				btCancelar = new JButton();
				btCancelar.setText("Cancelar");
			}
			{
				ComboBoxModel cbTipoModel = 
					new DefaultComboBoxModel(
							new String[] { "Item One", "Item Two" });
				cbTipo = new JComboBox();
				cbTipo.setModel(cbTipoModel);
			}
			{
				lbFDesde = new JLabel();
				lbFDesde.setText("Fecha desde");
			}
			{
				tfFDesde = new JTextField();
			}
			{
				lbFHasta = new JLabel();
				lbFHasta.setText("Fecha hasta");
			}
			{
				tfFHasta = new JTextField();
			}
			thisLayout.setVerticalGroup(thisLayout.createSequentialGroup()
				.addContainerGap(17, 17)
				.addGroup(thisLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(cbTipo, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(lbTipo, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(thisLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(tfFDesde, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(lbFDesde, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(lbFHasta, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(tfFHasta, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
				.addGroup(thisLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(cbCliente, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(lbCliente, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(thisLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(cbRecurso, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(lbRecurso, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addGap(87)
				.addGroup(thisLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(btAceptar, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(btCancelar, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 28, GroupLayout.PREFERRED_SIZE))
				.addContainerGap(17, 17));
			thisLayout.setHorizontalGroup(thisLayout.createSequentialGroup()
				.addContainerGap()
				.addGroup(thisLayout.createParallelGroup()
				    .addGroup(thisLayout.createSequentialGroup()
				        .addGroup(thisLayout.createParallelGroup()
				            .addComponent(lbFDesde, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 74, GroupLayout.PREFERRED_SIZE)
				            .addComponent(lbCliente, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 74, GroupLayout.PREFERRED_SIZE)
				            .addComponent(lbRecurso, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 74, GroupLayout.PREFERRED_SIZE))
				        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				        .addGroup(thisLayout.createParallelGroup()
				            .addGroup(GroupLayout.Alignment.LEADING, thisLayout.createSequentialGroup()
				                .addComponent(cbCliente, GroupLayout.PREFERRED_SIZE, 218, GroupLayout.PREFERRED_SIZE)
				                .addGap(26))
				            .addGroup(GroupLayout.Alignment.LEADING, thisLayout.createSequentialGroup()
				                .addComponent(cbRecurso, GroupLayout.PREFERRED_SIZE, 218, GroupLayout.PREFERRED_SIZE)
				                .addGap(26))
				            .addGroup(GroupLayout.Alignment.LEADING, thisLayout.createSequentialGroup()
				                .addGap(80)
				                .addComponent(tfFDesde, GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE)
				                .addGap(19)
				                .addComponent(lbFHasta, GroupLayout.PREFERRED_SIZE, 74, GroupLayout.PREFERRED_SIZE))))
				    .addGroup(GroupLayout.Alignment.LEADING, thisLayout.createSequentialGroup()
				        .addComponent(lbTipo, GroupLayout.PREFERRED_SIZE, 41, GroupLayout.PREFERRED_SIZE)
				        .addGap(23)
				        .addComponent(cbTipo, GroupLayout.PREFERRED_SIZE, 234, GroupLayout.PREFERRED_SIZE)
				        .addGap(26)))
				.addGroup(thisLayout.createParallelGroup()
				    .addGroup(GroupLayout.Alignment.LEADING, thisLayout.createSequentialGroup()
				        .addComponent(tfFHasta, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE)
				        .addGap(54))
				    .addGroup(GroupLayout.Alignment.LEADING, thisLayout.createSequentialGroup()
				        .addGap(90)
				        .addComponent(btAceptar, GroupLayout.PREFERRED_SIZE, 73, GroupLayout.PREFERRED_SIZE)))
				.addGap(17)
				.addComponent(btCancelar, GroupLayout.PREFERRED_SIZE, 89, GroupLayout.PREFERRED_SIZE)
				.addContainerGap(23, Short.MAX_VALUE));
			pack();
			this.setSize(630, 313);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
